import request from '@/utils/request'
export function advantageList(typeId){
  return request({
    url: '/advantage/advantage/content/'+typeId,
    method: 'get',
  })
}
// 查询优势列表
export function listAdvantage(query) {
  return request({
    url: '/advantage/advantage/list',
    method: 'get',
    params: query
  })
}

// 查询优势详细
export function getAdvantage(advantageId) {
  return request({
    url: '/advantage/advantage/' + advantageId,
    method: 'get'
  })
}

// 新增优势
export function addAdvantage(data) {
  return request({
    url: '/advantage/advantage',
    method: 'post',
    data: data
  })
}

// 修改优势
export function updateAdvantage(data) {
  return request({
    url: '/advantage/advantage',
    method: 'put',
    data: data
  })
}

// 删除优势
export function delAdvantage(advantageId) {
  return request({
    url: '/advantage/advantage/' + advantageId,
    method: 'delete'
  })
}
